import java.util.ArrayList;
import java.io.Serializable;

public class ChatMessage implements Serializable {
  public int type;
  public String payload;
  public ArrayList<ChatClientRecord> groupList;
  public ChatClientRecord clientRec;
  public static final int REG_ATTEMPT = 0;
  public static final int REG_SUCCESS = 1;
  public static final int REG_FAIL = 2;
  public static final int HEARTBEAT = 3;
  public static final int GET_LIST = 4;
  public static final int IM = 5;
  public static final int CLIENT_REC = 6;
  public static final int CHAT_INIT = 7;

  public ChatMessage(int type, String payload, ArrayList<ChatClientRecord> groupList, ChatClientRecord clientRec) {
    this.type = type;
    this.payload = payload;
    this.groupList = groupList;
    this.clientRec = clientRec;
  }
}
